package com.eb.Client;

import com.eb.pojo.MiaoshaUser;
import com.eb.pojo.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

@FeignClient("record")
public interface UserInterface {

    @RequestMapping(value = "/user/login",method = RequestMethod.POST)
    public Result login(@RequestBody MiaoshaUser user);
    @RequestMapping(value = "/user",method = RequestMethod.GET)
    public List<MiaoshaUser> list();
    @RequestMapping(value = "/user",method = RequestMethod.POST)
    public Result zc(@RequestBody MiaoshaUser user);
    @RequestMapping(value = "/user/username",method = RequestMethod.GET)
    public MiaoshaUser user();

}
